package vn.com.fsoft.model.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="REFERENCEDATA")
public class ReferenceData implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1290159887915266602L;
	
	private int refId;	
	private String refCode;	
	private String refValue;
	
	public ReferenceData(){
		super();
	}
	
	public ReferenceData(int refId, String refCode, String refValue) {
		super();
		this.refId = refId;
		this.refCode = refCode;
		this.refValue = refValue;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="REF_ID",nullable=false,unique=true)
	public int getRefId() {
		return refId;
	}
	public void setRefId(int refId) {
		this.refId = refId;
	}
	@Column(name="REF_CODE",length=10)
	public String getRefCode() {
		return refCode;
	}
	public void setRefCode(String refCode) {
		this.refCode = refCode;
	}
	@Column(name="REF_VALUE",length=100)
	public String getRefValue() {
		return refValue;
	}
	public void setRefValue(String refValue) {
		this.refValue = refValue;
	}
	
	
}
